// 全局共享数据示例
import { history } from '@umijs/max';
import { Modal } from 'antd';
const useUser = () => {
    const { confirm } = Modal;
    function authModal(title: React.ReactNode, okText: React.ReactNode, cancelText: React.ReactNode) {
        confirm({
            title,
            okText,
            cancelText,
            onOk: () => {
                history.push('/AuthRealName')
            }
        });
    }
    return {
        authModal
    };
};

export default useUser;
